@import '@/style/variables.less';

.light {
  &.login-wrapper {
    background-color: white;
    background-image: url('@/assets/login_bg.png');
  }
}

.dark {
  &.login-wrapper {
    background-color: @bg-color-page;
    background-image: url('@/assets/login_bg.png');
  }
}

.login-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: 100%;
  position: relative;
  //align-items: center;
  //justify-content: center;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 12%;
  width: 100%;
  height: 80%;
  @media screen and (max-width: 428px) {
    height: 100%;
    top: 0;
  }
  //left: 5%;
  min-height: 320px;
  line-height: 22px;
  //background-color: #fff;
  //border-radius: 6px;
  //padding: 25px;
  //border: 1px solid #ccc;
}

.title-container {
  display: flex;
  //justify-content: center;
  align-items: center;
  flex-direction: column;
  //margin-bottom: 48px;
  border: 1px solid #ccc;
  padding: 25px;
  border-radius: 6px;
  background-color: #fff;
  //width: 60%;
  position: relative;
  .title {
    display: flex;
    align-items: center;
    font-size: 36px;
    line-height: 44px;
    color: @text-color-primary;
    //margin-top: 4px;
    //&.margin-no {
    //  margin-top: 0;
    //}
    margin-bottom: 10px;
  }
  @media screen and (max-width: 428px) {
    height: 100%;
    border: initial;
  }

  .sub-title {
    margin-top: 16px;

    .tip {
      display: inline-block;
      margin-right: 8px;
      font-size: 14px;

      &:first-child {
        color: @text-color-secondary;
      }

      &:last-child {
        color: @text-color-primary;
        cursor: pointer;
      }
    }
  }
}

.item-container {
  //width: 400px;
  @media screen and (min-width: 428px) {
    width: 400px;
  }

  &.login-qrcode {

    .tip-container {
      //width: 192px;
      margin-bottom: 16px;
      font-size: 14px;
      display: flex;
      //justify-content: space-between;
      justify-content: center;

      .tip {
        color: @text-color-primary;
      }

      .refresh {
        display: flex;
        align-items: center;
        color: @brand-color;

        .t-icon {
          font-size: 14px;
        }

        &:hover {
          cursor: pointer;
        }
      }
    }

    .bottom-container {
      margin-top: 32px;
    }
  }

  &.login-phone {

    .bottom-container {
      margin-top: 66px;
    }
  }

  .check-container {
    display: flex;
    align-items: center;

    &.remember-pwd {
      margin-bottom: 16px;
      justify-content: space-between;
    }

    .t-checkbox__label {
      color: @text-color-secondary;
    }

    span {
      color: @brand-color;

      &:hover {
        cursor: pointer;
      }
    }
  }

  .verification-code {
    display: flex;
    align-items: center;

    .t-form__controls {
      width: 100%;

      button {
        flex-shrink: 0;
        width: 102px;
        height: 40px;
        margin-left: 11px;
      }
      .login-code-img{
        flex-shrink: 0;
        width: 102px;
        height: 40px;
        margin-left: 11px;
        border:1px solid var(--td-border-level-2-color)
      }
    }
  }

  .btn-container {
    //margin-top: 48px;
  }
}

.switch-container {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  .tip {
    font-size: 14px;
    color: @brand-color-8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-right: 14px;

    &:last-child {

      &::after {
        display: none;
      }
    }

    &::after {
      content: '';
      display: block;
      width: 1px;
      height: 12px;
      background: @gray-color-3;
      margin-left: 14px;
    }
  }
}

.check-container {
  font-size: 14px;
  color: @text-color-secondary;

  .tip {
    float: right;
    font-size: 14px;
    color: @brand-color-8;
  }

  .warn-tip {
    float: right;
    font-size: 14px;
    color: red;
  }
}

.warn-container {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  justify-content: space-between;
  font-size: 14px;
  color: @text-color-secondary;

  .tip {
    float: right;
    font-size: 14px;
    color: @brand-color-8;
  }

  .warn-tip {
    float: right;
    font-size: 14px;
    color: red;
  }
}

.copyright {
  font-size: 14px;
  position:absolute;
  left: 5%;
  bottom: 64px;
  color: @text-color-secondary;
}

@media screen and (max-height: 700px) {
  .copyright {
    display:none
  }
}
